package com.tech.exception;



/**
* @Title BizException.java
* @Description 
* 1、异常定义要有明确的编码，文字描述以及配置化参数
* 2、不同大类的异常首字母不同
* @author willard
* @date 2018年12月19日 上午9:27:26
* @version V1.0
*/
public class BizException extends BaseBizException {

	private static final long serialVersionUID = 1L;
	

	/**
	 * code:100200, 业务异常
	 */
	public static BizException BUSSINESS_ERRPR = new BizException("100200", "{0}");


	protected BizException(String defineCode,String msg) {
		super(defineCode,msg);
	}

	public BizException newInstance(Object... params){
		BizException txpe = new BizException(this.defineCode,this.message);
		txpe.setMessage(this.message, params);
		return txpe;
	}
	
	public static void main(String[] args) throws BizException  {
		throw BizException.BUSSINESS_ERRPR.newInstance("自定义异常信息");
	}
}
